home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / ratfor.z / ratfor
Encoding:
Text File  |  2002-10-03  |  1.6 KB  |  61 lines

  1. RATFOR(1)                                             Last changed: 8-19-98
  2.  
  3.  
  4. NNAAMMEE
  5.      rraattffoorr - rational FORTRAN dialect
  6.  
  7. SSYYNNOOPPSSIISS
  8.      rraattffoorr [ option ... ] [ filename ... ]
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      IRIX systems
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      _R_a_t_f_o_r converts a rational dialect of FORTRAN into ordinary irrational
  15.      FORTRAN.  _R_a_t_f_o_r provides control flow constructs essentially
  16.      identical to those in C:
  17.  
  18.      statement grouping:
  19.  
  20.           { statement; statement; statement }
  21.  
  22.      decision-making:
  23.           if (condition) statement [ else statement ]
  24.           switch (integer value) {      case integer:  statement      ...
  25.                [ default: ]   statement }
  26.  
  27.      loops:
  28.           while (condition) statement for (expression; condition;
  29.           expression) statement do limits statement repeat statement [
  30.           until (condition) ] break next
  31.  
  32.      and some syntactic sugar to make programs easier to read and write:
  33.  
  34.      free form input:
  35.           multiple statements/line; automatic continuation
  36.  
  37.      comments:
  38.           # this is a comment
  39.  
  40.      translation of relationals:
  41.           >, >=, etc., become .GT., .GE., etc.
  42.  
  43.      return (expression)
  44.           returns expression to caller from function
  45.  
  46.      define:
  47.           define name replacement
  48.  
  49.      include:
  50.           include filename
  51.  
  52.      _R_a_t_f_o_r is best used with ff7777(1).
  53.  
  54. SSEEEE AALLSSOO
  55.      ff7777(1)
  56.      B. W. Kernighan and P. J. Plauger, _S_o_f_t_w_a_r_e _T_o_o_l_s, Addison-Wesley,
  57.      1976.
  58.  
  59.      This man page is available only online.
  60.  
  61.